/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.clbs.ex.springgwt.server.extractor;

import com.clbs.ex.springgwt.client.model.IssueStatus;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

/**
 *
 * @author peerawat.poombua
 */
public class IssueStatusExtractor implements ResultSetExtractor<IssueStatus> {

    public IssueStatus extractData(ResultSet rs) throws SQLException, DataAccessException {
        IssueStatus issueStatus = new IssueStatus();
        issueStatus.setIssue_statusID(rs.getInt("nIssueStatusID"));
        issueStatus.setName(rs.getString("cName"));
        return issueStatus;
    }

}
